<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
  <title>导航页</title>
  <base th:href="@{/}"><!-- 不用base就使用th:src="@{/js/jquery.min.js} -->
  <script src="js/jquery.min.js"></script>
  <link href="/css/bootstrap.min.css" rel="stylesheet">
  <link href="/css/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
  <link href="/css/style.css" rel="stylesheet">
  <link href="/css/style1.css" rel="stylesheet">
</head>
<body >
<!--导航栏 加到IDEA里面单独成一个header.html-->
<header id="header" class="fixed-top" >
  <div class="container d-flex align-items-center">
    <a href="#" class="logo me-auto"><img src="/img/logo.png" alt="" class="img-fluid"></a>
    <nav id="navbar" class="navbar order-last order-lg-0">
      <ul>
        <li class="dropdown">
          <a class="nav-link scrollto dropdown-toggle" data-toggle="dropdown" href="doctor/selectAllDoctorsByPage?currentPage=1">医生管理</a>
          <ul class="dropdown-menu">
            <li><a th:href="@{doctor/selectAllDoctorsByPage?currentPage=1}">浏览医生</a></li>
            <li><a th:href="@{doctor/toAddDoctor}">添加医生</a></li>
          </ul>
        </li>
        <li class="dropdown"><a href="user/selectAllUsersByPage?currentPage=1" data-toggle="dropdown"
                                class="dropdown-toggle">病人管理<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a th:href="@{user/selectAllUsersByPage?currentPage=1}">浏览病人</a></li>
            <li><a th:href="@{user/toAddUser}">添加病人</a></li>
          </ul>
        </li>
        <li class="dropdown"><a href="/admin/boardList" data-toggle="dropdown"
                                class="dropdown-toggle">公告管理<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a th:href="@{/admin/boardList}">查看所有公告</a></li>
            <li><a th:href="@{/admin/toAddBoard}">添加新公告</a></li>
          </ul>
        </li>
        <li class="dropdown">
          <a class="nav-link scrollto dropdown-toggle" data-toggle="dropdown" href="admin/recordList">病例管理</a>
          <ul class="dropdown-menu">
            <li><a th:href="@{admin/recordList}">全部病例</a></li>
<!--            <li><a th:href="@{admin/toAddRecord}">添加病例</a></li>-->
          </ul>
        </li>
<!--        <li><a class="nav-link scrollto" href="admin/mzgh?currentPage=1" >挂号管理</a></li>-->
        <li class="dropdown">
          <a th:href="@{plans}" data-toggle="dropdown"
             class="dropdown-toggle">排班管理<span class="caret"></span></a>
          <ul class="dropdown-menu">
            <li><a th:href="@{plans}">所有排班</a></li>
            <li><a th:href="@{plans/new}">添加排班</a></li>
          </ul>
        </li>
        <li class="dropdown">
          <a class="nav-link scrollto dropdown-toggle" data-toggle="dropdown" href="departments">科室管理</a>
          <ul class="dropdown-menu">
            <li><a th:href="@{departments}">全部科室</a></li>
            <li><a th:href="@{departments/new}">添加科室</a></li>
          </ul>
        </li>
        <li class="dropdown"><a><img src="https://lygbig-event.oss-cn-beijing.aliyuncs.com/guanliyuan.png" alt="头像" class="img-fluid"></a>
          <ul>
            <li><a href="/admin/logout">退出登录</a></li>
          </ul>
        </li>
      </ul>
      <i class="bi bi-list mobile-nav-toggle"></i>
    </nav>
  </div>
</header>
</body>